<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.4.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/astronaut32.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/astronaut16.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">

<link rel="stylesheet" href="fonts.googleapis.com/css?family=EB Garamond:300,300italic,400,400italic,700,700italic|Cinzel Decorative:300,300italic,400,400italic,700,700italic|Noto Serif SC:300,300italic,400,400italic,700,700italic|Source Code Pro:300,300italic,400,400italic,700,700italic&display=swap&subset=latin,latin-ext">
<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">
  <link rel="stylesheet" href="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.css">
  <link rel="stylesheet" href="/lib/pace/pace-theme-pace-theme-minimal.min.css">
  <script src="/lib/pace/pace.min.js"></script>

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"fat_fat_where_are_you.gitee.io","root":"/","scheme":"Gemini","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":true,"show_result":true,"style":"mac"},"back2top":{"enable":false,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":true,"mediumzoom":false,"lazyload":true,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.xml"};
  </script>

<link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@500&display=swap" rel="stylesheet">
  <meta name="description" content="C语言（谭浩强版）读书笔记">
<meta property="og:type" content="article">
<meta property="og:title" content="C 语言学习笔记（下）">
<meta property="og:url" content="http://fat_fat_where_are_you.gitee.io/archives/13675369.html">
<meta property="og:site_name" content="肥肉啊肥肉你在哪">
<meta property="og:description" content="C语言（谭浩强版）读书笔记">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="http://fat_fat_where_are_you.gitee.io/archives/13675369/20181225221924168-1632636714356.png">
<meta property="og:image" content="http://fat_fat_where_are_you.gitee.io/archives/13675369/20181225221946247-1632636716982.png">
<meta property="og:image" content="http://fat_fat_where_are_you.gitee.io/archives/13675369/20181225222012923-1632636719226.png">
<meta property="og:image" content="http://fat_fat_where_are_you.gitee.io/archives/13675369/20181225222035194-1632636721866.png">
<meta property="og:image" content="http://fat_fat_where_are_you.gitee.io/archives/13675369/2018122522205365-1632636724408.png">
<meta property="og:image" content="http://fat_fat_where_are_you.gitee.io/archives/13675369/20181225222109966-1632636727776.png">
<meta property="og:image" content="http://fat_fat_where_are_you.gitee.io/archives/13675369/20181225222139235-1632636729829.png">
<meta property="og:image" content="http://fat_fat_where_are_you.gitee.io/archives/13675369/2018122522215722-1632636732272.png">
<meta property="og:image" content="http://fat_fat_where_are_you.gitee.io/archives/13675369/20181225222211787-1632636734371.png">
<meta property="og:image" content="http://fat_fat_where_are_you.gitee.io/archives/13675369/20181225222231834-1632636738185.png">
<meta property="og:image" content="http://fat_fat_where_are_you.gitee.io/archives/13675369/20181225222326333-1632636740976.png">
<meta property="og:image" content="http://fat_fat_where_are_you.gitee.io/archives/13675369/20181225222355135-1632636743782.png">
<meta property="og:image" content="http://fat_fat_where_are_you.gitee.io/archives/13675369/20181225222422738-1632636746362.png">
<meta property="og:image" content="http://fat_fat_where_are_you.gitee.io/archives/13675369/20181225222455336-1632636748902.png">
<meta property="og:image" content="http://fat_fat_where_are_you.gitee.io/archives/13675369/20181225222509485-1632636750911.png">
<meta property="og:image" content="http://fat_fat_where_are_you.gitee.io/archives/13675369/20181225222534177-1632636754387.png">
<meta property="og:image" content="http://fat_fat_where_are_you.gitee.io/archives/13675369/201812252225488-1632636756448.png">
<meta property="og:image" content="http://fat_fat_where_are_you.gitee.io/archives/13675369/20181225222603632.png">
<meta property="og:image" content="http://fat_fat_where_are_you.gitee.io/archives/13675369/20181225222625881-1632636758905.png">
<meta property="og:image" content="http://fat_fat_where_are_you.gitee.io/archives/13675369/20181225222648805-1632636765958.png">
<meta property="og:image" content="http://fat_fat_where_are_you.gitee.io/archives/13675369/20181225222710605-1632636767980.png">
<meta property="og:image" content="http://fat_fat_where_are_you.gitee.io/archives/13675369/20181225222740817-1632636772857.png">
<meta property="og:image" content="http://fat_fat_where_are_you.gitee.io/archives/13675369/20181225222754462-1632636775927.png">
<meta property="og:image" content="http://fat_fat_where_are_you.gitee.io/archives/13675369/20181225222907459-1632636778206.png">
<meta property="article:published_time" content="2021-09-26T06:28:16.000Z">
<meta property="article:modified_time" content="2021-09-26T06:28:16.000Z">
<meta property="article:author" content="肥肉啊肥肉你在哪">
<meta property="article:tag" content="c语言">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="http://fat_fat_where_are_you.gitee.io/archives/13675369/20181225221924168-1632636714356.png">

<link rel="canonical" href="http://fat_fat_where_are_you.gitee.io/archives/13675369.html">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>
<link rel="stylesheet" type="text/css" href="/css/injector/main.css"><link rel="preload" as="style" href="/css/injector/light.css"><link rel="preload" as="style" href="/css/injector/dark.css">
  <title>C 语言学习笔记（下） | 肥肉啊肥肉你在哪</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

  <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome/css/font-awesome.min.css">

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">肥肉啊肥肉你在哪</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a>

  </li>
        <li class="menu-item menu-item-movies">

    <a href="/movies/" rel="section"><i class="fa fa-film fa-fw"></i>观影</a>

  </li>
        <li class="menu-item menu-item-books">

    <a href="/books/" rel="section"><i class="fa fa-book fa-fw"></i>阅读</a>

  </li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup">
        <div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocapitalize="off" placeholder="搜索..." spellcheck="false" type="search" class="search-input">
  </div>
  <span class="popup-btn-close">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div id="search-result">
  <div id="no-result">
    <i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>
  </div>
</div>

    </div>
  </div>

</div>
    </header>

    
  <div class="reading-progress-bar"></div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="http://fat_fat_where_are_you.gitee.io/archives/13675369.html">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/touxiang.gif">
      <meta itemprop="name" content="肥肉啊肥肉你在哪">
      <meta itemprop="description" content>
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="肥肉啊肥肉你在哪">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          C 语言学习笔记（下）
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2021-09-26 14:28:16" itemprop="dateCreated datePublished" datetime="2021-09-26T14:28:16+08:00">2021-09-26</time>
            </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-folder"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/%E8%80%83%E7%A0%94/" itemprop="url" rel="index"><span itemprop="name">考研</span></a>
                </span>
            </span>

          
          
          <br>
            <span id="/archives/13675369.html" class="post-meta-item leancloud_visitors" data-flag-title="C 语言学习笔记（下）" title="阅读次数">
              <span class="post-meta-item-icon">
                <i class="fa fa-eye"></i>
              </span>
              <span class="post-meta-item-text">阅读次数：</span>
              <span class="leancloud-visitors-count"></span>
            </span>
  
  <span class="post-meta-item">
    
      <span class="post-meta-item-icon">
        <i class="far fa-comment"></i>
      </span>
      <span class="post-meta-item-text">Valine：</span>
    
    <a title="valine" href="/archives/13675369.html#valine-comments" itemprop="discussionUrl">
      <span class="post-comments-count valine-comment-count" data-xid="/archives/13675369.html" itemprop="commentCount"></span>
    </a>
  </span>
  
  <br>
            <span class="post-meta-item" title="本文字数">
              <span class="post-meta-item-icon">
                <i class="far fa-file-word"></i>
              </span>
                <span class="post-meta-item-text">本文字数：</span>
              <span>2.4k</span>
            </span>
            <span class="post-meta-item" title="阅读时长">
              <span class="post-meta-item-icon">
                <i class="far fa-clock"></i>
              </span>
                <span class="post-meta-item-text">阅读时长 &asymp;</span>
              <span>2 分钟</span>
            </span>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <h1 id="C 语言（谭浩强版）读书笔记"><a href="#C 语言（谭浩强版）读书笔记" class="headerlink" title="C 语言（谭浩强版）读书笔记"></a>C 语言（谭浩强版）读书笔记</h1><span id="more"></span>

<h2 id="7- 数组"><a href="#7- 数组" class="headerlink" title="7. 数组"></a>7. 数组</h2><h3 id="7-1 一维数组"><a href="#7-1 一维数组" class="headerlink" title="7.1 一维数组"></a>7.1 一维数组</h3><p><img data-src="/archives/13675369/20181225221924168-1632636714356.png"></p>
<h3 id="7-2 二维数组（矩阵）"><a href="#7-2 二维数组（矩阵）" class="headerlink" title="7.2 二维数组（矩阵）"></a>7.2 二维数组（矩阵）</h3><p><img data-src="/archives/13675369/20181225221946247-1632636716982.png"></p>
<h3 id="7-3 字符数组"><a href="#7-3 字符数组" class="headerlink" title="7.3 字符数组"></a>7.3 字符数组 </h3><p> 字符型数据以字符的 ASCII 码存储，属于整数形式，一般占用一个字节。<br><img data-src="/archives/13675369/20181225222012923-1632636719226.png"></p>
<h3 id="7-4 字符串处理函数"><a href="#7-4 字符串处理函数" class="headerlink" title="7.4 字符串处理函数"></a>7.4 字符串处理函数 </h3><p> 待输入字符数组 / 连接数组 1/ 复制数组 1，必须有元素个数防止过小。<br><img data-src="/archives/13675369/20181225222035194-1632636721866.png"></p>
<h2 id="8- 函数"><a href="#8- 函数" class="headerlink" title="8. 函数"></a>8. 函数</h2><p><img data-src="/archives/13675369/2018122522205365-1632636724408.png"></p>
<h3 id="8-1 定义 - 声明"><a href="#8-1 定义 - 声明" class="headerlink" title="8.1 定义 / 声明"></a>8.1 定义 / 声明</h3><p><img data-src="/archives/13675369/20181225222109966-1632636727776.png"></p>
<h3 id="8-2 调用"><a href="#8-2 调用" class="headerlink" title="8.2 调用"></a>8.2 调用</h3><p><img data-src="/archives/13675369/20181225222139235-1632636729829.png"></p>
<h3 id="8-3 数组参数"><a href="#8-3 数组参数" class="headerlink" title="8.3 数组参数"></a>8.3 数组参数</h3><p><img data-src="/archives/13675369/2018122522215722-1632636732272.png"></p>
<h3 id="8-4 局部变量 - 全局变量"><a href="#8-4 局部变量 - 全局变量" class="headerlink" title="8.4 局部变量 / 全局变量"></a>8.4 局部变量 / 全局变量 </h3><p><img data-src="/archives/13675369/20181225222211787-1632636734371.png"><br> 为多个源文件共用外部变量，减少“外部变量声明”，可将所有“外部变量声明”集中在一个新建 new.h 文件中，然后调用 #include&lt;new.h&gt; 即可。</p>
<h2 id="9- 指针"><a href="#9- 指针" class="headerlink" title="9. 指针"></a>9. 指针 </h2><h3 id="9-1 指针变量"><a href="#9-1 指针变量" class="headerlink" title="9.1 指针变量"></a>9.1 指针变量</h3><p> 指针：&amp;，地址，&amp;x 表示变量 x 的地址；<br>指针变量：存放变量 x 的地址（指针）的变量 a，即地址变量，值为地址；<br>指向：*，*p 表示指针变量 p 所指向的变量 x，即 x 的值；<br><img data-src="/archives/13675369/20181225222231834-1632636738185.png"></p>
<h3 id="9-2 数组指针"><a href="#9-2 数组指针" class="headerlink" title="9.2 数组指针"></a>9.2 数组指针</h3><p><img data-src="/archives/13675369/20181225222326333-1632636740976.png"></p>
<h3 id="9-3 二维数组指针"><a href="#9-3 二维数组指针" class="headerlink" title="9.3 二维数组指针"></a>9.3 二维数组指针</h3><p><img data-src="/archives/13675369/20181225222355135-1632636743782.png"><br><img data-src="/archives/13675369/20181225222422738-1632636746362.png"></p>
<h3 id="9-4 字符串指针"><a href="#9-4 字符串指针" class="headerlink" title="9.4 字符串指针"></a>9.4 字符串指针 </h3><p> 定义 + 指向首地址 + 引用（p1++，p1!=’\0’）<br><img data-src="/archives/13675369/20181225222455336-1632636748902.png"><br><img data-src="/archives/13675369/20181225222509485-1632636750911.png"></p>
<h3 id="9-5 函数指针"><a href="#9-5 函数指针" class="headerlink" title="9.5 函数指针"></a>9.5 函数指针</h3><p><img data-src="/archives/13675369/20181225222534177-1632636754387.png"><br><img data-src="/archives/13675369/201812252225488-1632636756448.png"></p>
<h3 id="9-6 指针型函数"><a href="#9-6 指针型函数" class="headerlink" title="9.6 指针型函数"></a>9.6 指针型函数</h3><p><img data-src="/archives/13675369/20181225222603632.png"></p>
<h3 id="9-7 指针型数组 - 指针"><a href="#9-7 指针型数组 - 指针" class="headerlink" title="9.7 指针型数组 / 指针"></a>9.7 指针型数组 / 指针</h3><p><img data-src="/archives/13675369/20181225222625881-1632636758905.png"></p>
<h2 id="10- 自定义数据类型"><a href="#10- 自定义数据类型" class="headerlink" title="10. 自定义数据类型"></a>10. 自定义数据类型</h2><h3 id="10-1 结构体"><a href="#10-1 结构体" class="headerlink" title="10.1 结构体"></a>10.1 结构体</h3><h4 id="（1）结构体变量"><a href="#（1）结构体变量" class="headerlink" title="（1）结构体变量"></a>（1）结构体变量</h4><p><img data-src="/archives/13675369/20181225222648805-1632636765958.png"></p>
<h4 id="（2）结构体数组"><a href="#（2）结构体数组" class="headerlink" title="（2）结构体数组"></a>（2）结构体数组</h4><p><img data-src="/archives/13675369/20181225222710605-1632636767980.png"></p>
<h4 id="（3）结构体指针"><a href="#（3）结构体指针" class="headerlink" title="（3）结构体指针"></a>（3）结构体指针</h4><p><img data-src="/archives/13675369/20181225222740817-1632636772857.png"></p>
<h3 id="10-2 链表"><a href="#10-2 链表" class="headerlink" title="10.2 链表"></a>10.2 链表</h3><h4 id="（1）含义"><a href="#（1）含义" class="headerlink" title="（1）含义"></a>（1）含义</h4><p><img data-src="/archives/13675369/20181225222754462-1632636775927.png"></p>
<blockquote>
<p>链表：头指针（结点 1 指针）+ 结点 1（数据 + 结点 2 指针）+ 结点 2（数据 + 结点 3 指针）…+ 表尾（空指针 NULL）<br>头文件中存放一个地址，指向一个元素即结点，结点包含用户所需数据和下一结点地址（一般称为 next）。。。最后一结点不指向其他元素。</p>
</blockquote>
<h4 id="（2）具体分析"><a href="#（2）具体分析" class="headerlink" title="（2）具体分析"></a>（2）具体分析 </h4><p> 利用结构体变量建立动态链表：</p>
<h3 id="10-3 共用体"><a href="#10-3 共用体" class="headerlink" title="10.3 共用体"></a>10.3 共用体</h3><p><img data-src="/archives/13675369/20181225222907459-1632636778206.png"></p>
<h3 id="10-4typedef 声明新类型"><a href="#10-4typedef 声明新类型" class="headerlink" title="10.4typedef 声明新类型"></a>10.4typedef 声明新类型 </h3><h4 id="（1）格式"><a href="#（1）格式" class="headerlink" title="（1）格式"></a>（1）格式</h4><p> 按定义变量的方式，把变量名换上新类型名，并且在最前面加上“typedef”，就声明了新类型名代表原来的类型！</p>
<ol>
<li><p>命名一个简单地类型名代替复杂的类型表达方法：</p>
<figure class="highlight c"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">typedefstruct\&#123;intnum;charname\[<span class="number">20</span>\];floatscore;\&#125;Data;</span><br><span class="line">Databirthday;<span class="comment">// 定义结构体变量 birthday</span></span><br><span class="line">Data\*p;<span class="comment">// 定义结构体指针变量 p，指向此结构体类型数据</span></span><br></pre></td></tr></table></figure></li>
<li><p>数组：</p>
<figure class="highlight c"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">typedefintNum\[<span class="number">10</span>\];<span class="comment">// 声明 Num 为整型数组类型名</span></span><br><span class="line">Numa;<span class="comment">// 定义 a 为整形数组名，它有 100 个元素</span></span><br></pre></td></tr></table></figure></li>
<li><p>指针类型：</p>
<figure class="highlight c"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">typedefchar\*String;<span class="comment">// 声明 String 为字符指针类型</span></span><br><span class="line">Stringp,s\[<span class="number">10</span>\];/ 定义 p 为字符指针变量，s 为字符指针数组</span><br></pre></td></tr></table></figure></li>
</ol>
<h5 id="（2）define-typedef"><a href="#（2）define-typedef" class="headerlink" title="（2）define/typedef"></a>（2）define/typedef</h5><p>#defineCountint// 只是简单地字符串替换<br>typedefintCount;// 有；</p>
<h5 id="（3）新头文件"><a href="#（3）新头文件" class="headerlink" title="（3）新头文件"></a>（3）新头文件 </h5><p> 当不同源文件中用到同一类型数据（尤其是想数组、指针、结构体、共用体等）时，常用 typedef 声明一些数据类型，可以把所有的 typedef 名称声明单独放在一个头文件.h 中，然后再需要用到的文件中用 #include 指令把它们包含到文件中。</p>
<p>extern: 为多个源文件共用外部变量，减少“外部变量声明”，可将所有“外部变量声明”集中在一个新建 new.h 文件中，然后调用 #include&lt;new.h&gt; 即可。</p>
<figure class="highlight c"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#<span class="meta-keyword">include</span> “stdio.h”</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">include</span><span class="meta-string">&lt;stdlib.h&gt;</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> Len sizeof(struct Student) <span class="comment">// 结构体长度即所占空间大小</span></span></span><br><span class="line"><span class="keyword">int</span> n;</span><br><span class="line"><span class="class"><span class="keyword">struct</span> <span class="title">Student</span> // 结构体–链表定义</span></span><br><span class="line"><span class="class">&#123;</span> <span class="keyword">long</span> num; <span class="comment">// 定义结构体的数据包含学生学号、成绩</span></span><br><span class="line"><span class="keyword">float</span> score;</span><br><span class="line"><span class="class"><span class="keyword">struct</span> <span class="title">Student</span> * <span class="title">next</span>;</span> &#125;； <span class="comment">//next 是指针变量，指向下一结构体变量即结点</span></span><br><span class="line"></span><br><span class="line"><span class="function">struct Student * <span class="title">creat</span><span class="params">(<span class="keyword">void</span>)</span> <span class="comment">// 定义函数，返回一指向链表头的指针</span></span></span><br><span class="line"><span class="function"></span>&#123; <span class="class"><span class="keyword">struct</span> <span class="title">Student</span> * <span class="title">head</span>;</span> <span class="comment">// 头指针</span></span><br><span class="line"><span class="class"><span class="keyword">struct</span> <span class="title">Student</span> * <span class="title">p1</span>,*<span class="title">p2</span>;</span> <span class="comment">// 结点 1.2 的地址指针</span></span><br><span class="line">n=<span class="number">0</span>;</span><br><span class="line">p1=p2=(struct Student *) <span class="built_in">malloc</span>(Len); <span class="comment">// 开辟新单元并将地址赋值 p1/p2，(struct Student *) 是将 malloc 返回的指针转换成 struct Student 类型指针，也可省略不写，因为编译系统能实现隐式类型转换</span></span><br><span class="line"><span class="built_in">scanf</span>(“%ld,%f,&amp;p1-&gt;num,&amp;p1-&gt;score”); <span class="comment">// 输入第一个学生学号、成绩</span></span><br><span class="line">head=<span class="literal">NULL</span>; <span class="comment">// 初始化表头</span></span><br><span class="line"><span class="keyword">while</span>(p1-&gt;num!=<span class="number">0</span>) <span class="comment">// 如果有输入</span></span><br><span class="line">&#123;</span><br><span class="line">n=n+<span class="number">1</span>;</span><br><span class="line"><span class="keyword">if</span>(n==<span class="number">1</span>) head=p1; <span class="comment">// 第一次输入则把首次开辟空间的地址给表头</span></span><br><span class="line"><span class="keyword">else</span> p2-&gt;next=p1; <span class="comment">// 不是第一次则把最新开辟空间地址给 p2 所指向的结点内指针，如结点 1 内的结点 2 指针</span></span><br><span class="line">p2=p1; <span class="comment">// 然后将 p2 指针指向最新开辟空间，如结点 1</span></span><br><span class="line">p1=(struct Student *) <span class="built_in">malloc</span>(Len); <span class="comment">// 再开辟新单元，如结点 2</span></span><br><span class="line"><span class="built_in">scanf</span>(“%ld,%f,&amp;p1-&gt;num,&amp;p1-&gt;score”); <span class="comment">// 输入第 2 个学生学号、成绩</span></span><br><span class="line">&#125;</span><br><span class="line">p2-&gt;next=<span class="literal">NULL</span>; <span class="comment">// 最后一个结点内指针应为空</span></span><br><span class="line"><span class="keyword">return</span>(head); <span class="comment">// 返回此链表首地址</span></span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="function"><span class="keyword">int</span> <span class="title">main</span><span class="params">()</span></span></span><br><span class="line"><span class="function"></span>&#123;</span><br><span class="line"><span class="class"><span class="keyword">struct</span> <span class="title">Student</span> *<span class="title">pt</span>;</span></span><br><span class="line">pt=creat(); <span class="comment">// 函数返回链表第一个节点的地址</span></span><br><span class="line"><span class="keyword">if</span>(pt!=<span class="literal">NULL</span>)</span><br><span class="line"><span class="keyword">do</span></span><br><span class="line">&#123;<span class="built_in">printf</span>(“%ld %f\n”,pt-&gt;num,pt-&gt;score); <span class="comment">// 输出结点数据</span></span><br><span class="line">pt=pt-&gt;next;&#125; <span class="comment">// 指向下一结点</span></span><br><span class="line"><span class="keyword">while</span>(p!=<span class="literal">NULL</span>);</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>


    </div>

    
    
    
      

        <div class="reward-container">
  <div>感谢各位打赏的小伙伴</div>
  <button onclick="var qr = document.getElementById('qr'); qr.style.display = (qr.style.display === 'none') ? 'block' : 'none';">
    打赏
  </button>
  <div id="qr" style="display: none;">
      
      <div style="display: inline-block;">
        <img src="/images/wechatpay.png" alt="肥肉啊肥肉你在哪 微信支付">
        <p>微信支付</p>
      </div>
      
      <div style="display: inline-block;">
        <img src="/images/alipay.png" alt="肥肉啊肥肉你在哪 支付宝">
        <p>支付宝</p>
      </div>

  </div>
</div>

        

<div>
<ul class="post-copyright">
  <li class="post-copyright-author">
    <strong>本文作者： </strong>肥肉啊肥肉你在哪
  </li>
  <li class="post-copyright-link">
    <strong>本文链接：</strong>
    <a href="http://fat_fat_where_are_you.gitee.io/archives/13675369.html" title="C 语言学习笔记（下）">http://fat_fat_where_are_you.gitee.io/archives/13675369.html</a>
  </li>
  <li class="post-copyright-license">
    <strong>版权声明： </strong>本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" rel="external nofollow noopener noreferrer" target="_blank"><i class="fab fa-fw fa-creative-commons"></i>BY-NC-SA</a> 许可协议。转载请注明出处！
  </li>
</ul>
</div>


      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/c%E8%AF%AD%E8%A8%80/" rel="tag"><i class="fas fa-tags"></i> c语言</a>
          </div>

        
  <div class="post-widgets">
    <div class="wp_rating">
      <div id="wpac-rating"></div>
    </div>
  </div>


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/archives/9ced5463.html" rel="prev" title="考研数据结构代码整理">
      <i class="fa fa-chevron-left"></i> 考研数据结构代码整理
    </a></div>
      <div class="post-nav-item">
    <a href="/archives/608186a4.html" rel="next" title="数据结构与算法概念题">
      数据结构与算法概念题 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          
    <div class="comments" id="valine-comments"></div>

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#C%20%E8%AF%AD%E8%A8%80%EF%BC%88%E8%B0%AD%E6%B5%A9%E5%BC%BA%E7%89%88%EF%BC%89%E8%AF%BB%E4%B9%A6%E7%AC%94%E8%AE%B0"><span class="nav-text">C 语言（谭浩强版）读书笔记</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#7-%20%E6%95%B0%E7%BB%84"><span class="nav-text">7. 数组</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#7-1%20%E4%B8%80%E7%BB%B4%E6%95%B0%E7%BB%84"><span class="nav-text">7.1 一维数组</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#7-2%20%E4%BA%8C%E7%BB%B4%E6%95%B0%E7%BB%84%EF%BC%88%E7%9F%A9%E9%98%B5%EF%BC%89"><span class="nav-text">7.2 二维数组（矩阵）</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#7-3%20%E5%AD%97%E7%AC%A6%E6%95%B0%E7%BB%84"><span class="nav-text">7.3 字符数组 </span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#7-4%20%E5%AD%97%E7%AC%A6%E4%B8%B2%E5%A4%84%E7%90%86%E5%87%BD%E6%95%B0"><span class="nav-text">7.4 字符串处理函数 </span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#8-%20%E5%87%BD%E6%95%B0"><span class="nav-text">8. 函数</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#8-1%20%E5%AE%9A%E4%B9%89%20-%20%E5%A3%B0%E6%98%8E"><span class="nav-text">8.1 定义 &#x2F; 声明</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#8-2%20%E8%B0%83%E7%94%A8"><span class="nav-text">8.2 调用</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#8-3%20%E6%95%B0%E7%BB%84%E5%8F%82%E6%95%B0"><span class="nav-text">8.3 数组参数</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#8-4%20%E5%B1%80%E9%83%A8%E5%8F%98%E9%87%8F%20-%20%E5%85%A8%E5%B1%80%E5%8F%98%E9%87%8F"><span class="nav-text">8.4 局部变量 &#x2F; 全局变量 </span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#9-%20%E6%8C%87%E9%92%88"><span class="nav-text">9. 指针 </span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#9-1%20%E6%8C%87%E9%92%88%E5%8F%98%E9%87%8F"><span class="nav-text">9.1 指针变量</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#9-2%20%E6%95%B0%E7%BB%84%E6%8C%87%E9%92%88"><span class="nav-text">9.2 数组指针</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#9-3%20%E4%BA%8C%E7%BB%B4%E6%95%B0%E7%BB%84%E6%8C%87%E9%92%88"><span class="nav-text">9.3 二维数组指针</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#9-4%20%E5%AD%97%E7%AC%A6%E4%B8%B2%E6%8C%87%E9%92%88"><span class="nav-text">9.4 字符串指针 </span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#9-5%20%E5%87%BD%E6%95%B0%E6%8C%87%E9%92%88"><span class="nav-text">9.5 函数指针</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#9-6%20%E6%8C%87%E9%92%88%E5%9E%8B%E5%87%BD%E6%95%B0"><span class="nav-text">9.6 指针型函数</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#9-7%20%E6%8C%87%E9%92%88%E5%9E%8B%E6%95%B0%E7%BB%84%20-%20%E6%8C%87%E9%92%88"><span class="nav-text">9.7 指针型数组 &#x2F; 指针</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#10-%20%E8%87%AA%E5%AE%9A%E4%B9%89%E6%95%B0%E6%8D%AE%E7%B1%BB%E5%9E%8B"><span class="nav-text">10. 自定义数据类型</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#10-1%20%E7%BB%93%E6%9E%84%E4%BD%93"><span class="nav-text">10.1 结构体</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#%EF%BC%881%EF%BC%89%E7%BB%93%E6%9E%84%E4%BD%93%E5%8F%98%E9%87%8F"><span class="nav-text">（1）结构体变量</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%EF%BC%882%EF%BC%89%E7%BB%93%E6%9E%84%E4%BD%93%E6%95%B0%E7%BB%84"><span class="nav-text">（2）结构体数组</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%EF%BC%883%EF%BC%89%E7%BB%93%E6%9E%84%E4%BD%93%E6%8C%87%E9%92%88"><span class="nav-text">（3）结构体指针</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#10-2%20%E9%93%BE%E8%A1%A8"><span class="nav-text">10.2 链表</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#%EF%BC%881%EF%BC%89%E5%90%AB%E4%B9%89"><span class="nav-text">（1）含义</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%EF%BC%882%EF%BC%89%E5%85%B7%E4%BD%93%E5%88%86%E6%9E%90"><span class="nav-text">（2）具体分析 </span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#10-3%20%E5%85%B1%E7%94%A8%E4%BD%93"><span class="nav-text">10.3 共用体</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#10-4typedef%20%E5%A3%B0%E6%98%8E%E6%96%B0%E7%B1%BB%E5%9E%8B"><span class="nav-text">10.4typedef 声明新类型 </span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#%EF%BC%881%EF%BC%89%E6%A0%BC%E5%BC%8F"><span class="nav-text">（1）格式</span></a><ol class="nav-child"><li class="nav-item nav-level-5"><a class="nav-link" href="#%EF%BC%882%EF%BC%89define-typedef"><span class="nav-text">（2）define&#x2F;typedef</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#%EF%BC%883%EF%BC%89%E6%96%B0%E5%A4%B4%E6%96%87%E4%BB%B6"><span class="nav-text">（3）新头文件 </span></a></li></ol></li></ol></li></ol></li></ol></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="肥肉啊肥肉你在哪" src="/images/touxiang.gif">
  <p class="site-author-name" itemprop="name">肥肉啊肥肉你在哪</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">38</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">4</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">16</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://github.com/feirouafeirou" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;feirouafeirou" rel="external nofollow noopener noreferrer" target="_blank"><i class="fab fa-github fa-fw"></i>GitHub</a>
      </span>
      <span class="links-of-author-item">
        <a href="http://wpa.qq.com/msgrd?v=3&uin=1729013657&site=qq&menu=yes" title="QQ → http:&#x2F;&#x2F;wpa.qq.com&#x2F;msgrd?v&#x3D;3&amp;uin&#x3D;1729013657&amp;site&#x3D;qq&amp;menu&#x3D;yes" rel="external nofollow noopener noreferrer" target="_blank"><i class="fab fa-qq fa-fw"></i>QQ</a>
      </span>
  </div>


  <div class="links-of-blogroll motion-element">
    <div class="links-of-blogroll-title"><i class="fa fa-link fa-fw"></i>
      友情链接
    </div>
    <ul class="links-of-blogroll-list">
        <li class="links-of-blogroll-item">
          <a href="http://www.woshipm.com/" title="http:&#x2F;&#x2F;www.woshipm.com" rel="external nofollow noopener noreferrer" target="_blank">人人都是产品经理</a>
        </li>
        <li class="links-of-blogroll-item">
          <a href="http://www.chanpin100.com/" title="http:&#x2F;&#x2F;www.chanpin100.com" rel="external nofollow noopener noreferrer" target="_blank">产品壹佰</a>
        </li>
    </ul>
  </div>

      </div>

    </div>
  </aside>

  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 2020 – 
  <span itemprop="copyrightYear">2022</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">肥肉啊肥肉你在哪</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-chart-area"></i>
    </span>
    <span title="站点总字数">237k</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-coffee"></i>
    </span>
    <span title="站点阅读时长">3:35</span>
</div>

<div class="translate-style">
繁/简：<a id="translateLink" href="javascript:translatePage();">繁体
</a>
</div>
<script type="text/javascript" src="/js/tw_cn.js"></script>
<script type="text/javascript">
var defaultEncoding = 2; //网站编写字体是否繁体，1-繁体，2-简体
var translateDelay = 0; //延迟时间,若不在前, 要设定延迟翻译时间, 如100表示100ms,默认为0
var cookieDomain = "https://feirouafeirou.github.io/"; //Cookie地址, 一定要设定, 通常为你的网址
var msgToTraditionalChinese = "繁体"; //此处可以更改为你想要显示的文字
var msgToSimplifiedChinese = "简体"; //同上，但两处均不建议更改
var translateButtonId = "translateLink"; //默认互换id
translateInitilization();
</script>


        
<div class="busuanzi-count">
  <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
    <span class="post-meta-item" id="busuanzi_container_site_uv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-user"></i>
      </span>
      <span class="site-uv" title="总访客量">
        <span id="busuanzi_value_site_uv"></span>
      </span>
    </span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item" id="busuanzi_container_site_pv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-eye"></i>
      </span>
      <span class="site-pv" title="总访问量">
        <span id="busuanzi_value_site_pv"></span>
      </span>
    </span>
</div>








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js"></script>
  <script src="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/lozad@1/dist/lozad.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/pisces.js"></script>


<script src="/js/next-boot.js"></script>


  <script defer src="/lib/three/three.min.js"></script>


  



  <script>
  if (CONFIG.page.isPost) {
    wpac_init = window.wpac_init || [];
    wpac_init.push({
      widget: 'Rating',
      id    : 26171,
      el    : 'wpac-rating',
      color : 'fc6423'
    });
    (function() {
      if ('WIDGETPACK_LOADED' in window) return;
      WIDGETPACK_LOADED = true;
      var mc = document.createElement('script');
      mc.type = 'text/javascript';
      mc.async = true;
      mc.src = '//embed.widgetpack.com/widget.js';
      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(mc, s.nextSibling);
    })();
  }
  </script>

  
<script src="/js/local-search.js"></script>













  

  


<script>
NexT.utils.loadComments(document.querySelector('#valine-comments'), () => {
  NexT.utils.getScript('//unpkg.com/valine/dist/Valine.min.js', () => {
    var GUEST = ['nick', 'mail'];
    var guest = 'nick,mail,link';
    guest = guest.split(',').filter(item => {
      return GUEST.includes(item);
    });
    new Valine({
      el         : '#valine-comments',
      verify     : false,
      notify     : false,
      appId      : 'puzQn5yHhkbtBj2VGFbqJ4FE-MdYXbMMI',
      appKey     : 'lmcgKM2surcxNxMRiqInHjkU',
      placeholder: "Just go go",
      avatar     : 'retro',
      meta       : guest,
      pageSize   : '10' || 10,
      visitor    : true,
      lang       : '' || 'zh-cn',
      path       : location.pathname,
      recordIP   : false,
      serverURLs : ''
    });
  }, window.Valine);
});
</script>
<div class="moon-menu">
  <div class="moon-menu-items">
    
    <div id="moon-menu-item-back2bottom" class="moon-menu-item" onclick="back2bottom()">
      <i class="fa fa-chevron-down"></i>    </div>
    
    <div id="moon-menu-item-back2top" class="moon-menu-item" onclick="back2top()">
      <i class="fa fa-chevron-up"></i>    </div>
    
  </div>
  <div class="moon-menu-button">
    <svg class="moon-menu-bg">
      <circle class="moon-menu-cricle" cx="50%" cy="50%" r="44%"/>
      <circle class="moon-menu-border" cx="50%" cy="50%" r="48%"/>
    </svg>
    <div class="moon-menu-content">
      <div class="moon-menu-icon"><i class="fas fa-ellipsis-v"></i></div>
      <div class="moon-menu-text"></div>
    </div>
  </div>
</div><script src="/js/injector.js"></script>
<!-- 数字雨 -->
<!-- <canvas id="canvas" width="1440" height="900" ></canvas> -->
<!-- <script type="text/javascript" src="/js/src/DigitalRain.js"></script> -->
<!-- 页面点击小红心 -->
<script type="text/javascript" src="/js/src/clicklove.js"></script>
<!--浏览器搞笑标题-->
<script type="text/javascript" src="/js/FunnyTitle.js"></script>
<!-- Live2D看板娘 -->
<!-- <script src="/live2d-widget/autoload.js"></script> -->
<!-- <script src="https://feirouafeirou.github.io/live2d-widget/autoload.js"></script> -->
<!-- 网页音乐播放器 -->
<!-- <link rel="stylesheet" href="/dist/APlayer.min.css">
<div id="aplayer"></div>
<script type="text/javascript" src="/dist/APlayer.min.js"></script>
<script type="text/javascript" src="/dist/music.js"></script> -->
</body>

</html>
